package edu.gdkm.demo;

public class Demo6 {


    public static void main(String[] args) {
        int x=10;
        x=x+8;
        System.out.println(x);
        x++;  //x++ ==> x=x+1 递增
        System.out.println(x);
        x++;
        x++;
        System.out.println(x);
        x--;




        x--; //x-- ==> x=x-1;  x=20
        System.out.println(x);
        System.out.println(x+30);
        System.out.println(x);
        x+=2; //x+=2 ==> x=x+2;
        System.out.println(x);
        x-=4;
        System.out.println(x);
        x*=5; //x*5 ==> x=x*5
        System.out.println(x);
        x%=6; //x%6 ==> x=x%6 ,求余（数）计算符
        System.out.println(x);
   }
}
